#!/bin/bash targetProjectFile=pendent AVRGCC=avr-gcc export DEFINES="-mmcu=attiny10 -DBOARD=1 -fno-strict-aliasing -Wattributes" rm *.hex *.elf $AVRGCC $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c $AVRGCC $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o -o $targetProjectFile.elf avr-objcopy -O ihex $targetProjectFile.elf $targetProjectFile.hex echo "Compilatoin done" exit